import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import type { App } from 'vue'
import SvgIcon from '@/components/svgIcon/index.vue'
import Page from '@/components/Global/page.vue'

export function useElIcon(app: App) {
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
        app.component(`ele-${key}`, component);
    }
    app.component('SvgIcon',SvgIcon);
    //注册分页组件
    app.component('MPage',Page);
}
